package net.shopxx.entity;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Transient;


/**
 * 实体类 - 生产物流单
 */

@Entity
@Table(name = "prologOrder")
public class PrologOrder extends BaseEntity{

	private static final long serialVersionUID = -4453254346544313431L;
	
	private Boolean isEnabled;// 是否启用

	private Branch Branch;// 分公司ID

	private Date produceDistribTime;// 生产单分配日期
	
	private Date produceCompTime;// 生产单完成日期
	
	private String produceDistribManager;// 生产单分配人
	
	private String produceDistribStaff;// 生产单分配对象
	
	private Date sendTime;// 发货日期
		
	private String isState;// 生产物流状态
	
	private String prolog_id;// 编号
	
	private Product product ; //产品
	
	private Order order ; //订单
	
	private String payee;// 收款人
	
	private String paymentStatus;// 支付状态
	
	private String payer;// 付款人
	
	private BigDecimal paymentFee;// 付款手续费
	
	private BigDecimal totalAmount;// 付款金额
	
	private String delivery_id;// 物流单编号
	
	private String isDelState;//物流状态
	
	private String deliveryDistribManager;// 物流分配人员
	
	private String deliveryDistribStaff;// 物流人员
	
	private Date deliveryDistribTime;// 物流分配日期
	
	private Date deliveryCompTime;// 物流完成日期
	
	private String accessories; //物流配件
	

	public String getIsState() {
		return isState;
	}

	public void setIsState(String isState) {
		this.isState = isState;
	}

	public void setOrder(Order order) {
		this.order = order;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	public Order getOrder() {
		return order;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}
	
	@ManyToOne(fetch = FetchType.LAZY)
	public Branch getBranch() {
		return Branch;
	}

	public void setBranch(Branch branch) {
		Branch = branch;
	}
	
	public Date getSendTime() {
		return sendTime;
	}

	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}

	public Boolean getIsEnabled() {
		return isEnabled;
	}

	public void setIsEnabled(Boolean isEnabled) {
		this.isEnabled = isEnabled;
	}

	@Transient
	public boolean isEnabled() {
		return this.isEnabled;
	}

	public Date getProduceDistribTime() {
		return produceDistribTime;
	}

	public void setProduceDistribTime(Date produceDistribTime) {
		this.produceDistribTime = produceDistribTime;
	}

	public Date getProduceCompTime() {
		return produceCompTime;
	}

	public void setProduceCompTime(Date produceCompTime) {
		this.produceCompTime = produceCompTime;
	}

	public String getProduceDistribManager() {
		return produceDistribManager;
	}

	public void setProduceDistribManager(String produceDistribManager) {
		this.produceDistribManager = produceDistribManager;
	}

	public String getProduceDistribStaff() {
		return produceDistribStaff;
	}

	public void setProduceDistribStaff(String produceDistribStaff) {
		this.produceDistribStaff = produceDistribStaff;
	}

	public String getProlog_id() {
		return prolog_id;
	}

	public void setProlog_id(String prolog_id) {
		this.prolog_id = prolog_id;
	}

	public String getPayee() {
		return payee;
	}

	public void setPayee(String payee) {
		this.payee = payee;
	}

	public String getPaymentStatus() {
		return paymentStatus;
	}

	public void setPaymentStatus(String paymentStatus) {
		this.paymentStatus = paymentStatus;
	}

	public String getPayer() {
		return payer;
	}

	public void setPayer(String payer) {
		this.payer = payer;
	}

	public BigDecimal getPaymentFee() {
		return paymentFee;
	}

	public void setPaymentFee(BigDecimal paymentFee) {
		this.paymentFee = paymentFee;
	}

	public BigDecimal getTotalAmount() {
		return totalAmount;
	}

	public void setTotalAmount(BigDecimal totalAmount) {
		this.totalAmount = totalAmount;
	}
	
	public String getDelivery_id() {
		return delivery_id;
	}

	public void setDelivery_id(String delivery_id) {
		this.delivery_id = delivery_id;
	}

	public String getIsDelState() {
		return isDelState;
	}

	public void setIsDelState(String isDelState) {
		this.isDelState = isDelState;
	}

	public String getDeliveryDistribManager() {
		return deliveryDistribManager;
	}

	public void setDeliveryDistribManager(String deliveryDistribManager) {
		this.deliveryDistribManager = deliveryDistribManager;
	}

	public String getDeliveryDistribStaff() {
		return deliveryDistribStaff;
	}

	public void setDeliveryDistribStaff(String deliveryDistribStaff) {
		this.deliveryDistribStaff = deliveryDistribStaff;
	}

	public Date getDeliveryDistribTime() {
		return deliveryDistribTime;
	}

	public void setDeliveryDistribTime(Date deliveryDistribTime) {
		this.deliveryDistribTime = deliveryDistribTime;
	}

	public Date getDeliveryCompTime() {
		return deliveryCompTime;
	}

	public void setDeliveryCompTime(Date deliveryCompTime) {
		this.deliveryCompTime = deliveryCompTime;
	}

	public String getAccessories() {
		return accessories;
	}

	public void setAccessories(String accessories) {
		this.accessories = accessories;
	}

}